package com.deep.spring.v19;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.stereotype.Component;

import java.util.function.Predicate;

@Component
public class MyImportSelector implements ImportSelector {
//    @Override
//    public Predicate<String> getExclusionFilter() {
//        return ImportSelector.super.getExclusionFilter();
//    }

    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        System.out.println("MyImportSelector selectImports");
        return new String[]{"com.deep.spring.v19.bean.Animal"};

    }
}
